package homework;

class BasePlusSalesEmployee extends SalesEmployee {
    private double baseSalary;

    public BasePlusSalesEmployee(String name, int birthdayMonth, double baseSalary, double monthlySales, double commissionRate) {
        super(name, birthdayMonth, monthlySales, commissionRate);
        this.baseSalary = baseSalary;
    }

    public double getBaseSalary() {
        return baseSalary;
    }

    public double getSalary(int month) {
        return baseSalary + super.getSalary(month);
    }
}
